import { Routes, RouterModule }  from '@angular/router';
import { BusComponent } from './bus.component';
import { BusDetailComponent } from './detail/bus-detail.component';

const routes: Routes = [
  {
    path: '',
    component: BusComponent
  },
  {
      path:'detail/:bus_id',
      component: BusDetailComponent
  },
];

export const routing = RouterModule.forChild(routes);